package com.hundsun.cprs.yyt.service.classify.domain;

import java.io.Serializable;

/**
 * 用于ProjectType json对象
 * @author linbo
 * @version $Id: ProjectTypeDTO.java,v 0.1 2011-7-14 下午05:02:28 peng Exp $
 */
public class ClassifyTypeJson implements Serializable{
    
    private static final long serialVersionUID = -2351707183043220639L;
    
    private int id;
    /**
     * 
     */
    private String code;
    
    /**
     * 父节点code串
     */
    private int parentId;
    
    /**
     * 名称
     */
    private String name;
    
    public ClassifyTypeJson(){
        
    }
    
    public ClassifyTypeJson(Classify type){
        if (type != null){
        	this.setId(type.getId());
            this.setCode(type.getCode());
            this.setName(type.getName());
            this.setParentId(type.getParentId());
        } 
    }

    
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getParentId() {
		return parentId;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
    
}
